package com.nciae.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.nciae.dto.OrderDTO;
import com.nciae.exception.SellException;
import com.nciae.po.OrderMaster;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nciae.po.ProductInfo;

import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author YangChen
 * @since 2021-10-14
 */
public interface IOrderMasterService extends IService<OrderMaster> {


    OrderMaster findById(String id);

    OrderMaster Insert(OrderMaster orderMaster);

    OrderDTO create(OrderDTO orderDTO) throws SellException;

    OrderDTO findOne(String orderId) throws SellException;

    IPage<OrderDTO> findByPage(Integer page, Integer size);

    OrderDTO cancel(OrderDTO orderDTO) throws SellException;

    OrderDTO finish(OrderDTO orderDTO) throws SellException;
}
